package homeword.Add_and_sub;

public class Client {
    /**
     * 主体
     * @param args
     */
    public static void main(String[] args) {
        Repository repository = new Repository();


        Thread a = new Thread(new Add(repository), "A");
        Thread b = new Thread(new Sub(repository), "B");
        Thread c = new Thread(new Add(repository), "C");
        Thread d = new Thread(new Sub(repository), "D");

        a.start();
        b.start();
        c.start();
        d.start();
    }
}
